package exam.demo2;

import java.util.Arrays;

public class Test2 {

    public static void main(String[] args) {
        int[] arr = {100,4,9,2,10,3,4,7,5,37,5,6};
        Arrays.sort(arr);
        for (int x: arr) {
            System.out.print(x + " ");
        }
        int max = 0;
        int i = 0;
        while(i < arr.length) {
            if (arr[i+1] == arr[i]+1) {

            }
            i++;
        }
    }
}
